<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>系统管理</title>

<jsp:include page="../common/include.jsp" />
<script type="text/javascript">
	window.app_dict = {};
	<shiro:hasPermission name='${table.lowerFileName}:add'>
		app_dict._add = 1;
	</shiro:hasPermission>
	<shiro:hasPermission name='${table.lowerFileName}:update'>
		app_dict._update = 1;
	</shiro:hasPermission>
	<shiro:hasPermission name='${table.lowerFileName}:delete'>
		app_dict._delete = 1;
	</shiro:hasPermission>
</script>
<script type="text/javascript" src="${ctx}/static/model/sysmgr/model.js?version=20160816"></script>

</head>
<body>
   <div class="block">
		<div class="block-heading">
			<a href="#condition" data-toggle="collapse">查询条件</a>
		</div>
		<form action="" onsubmit="return false;" id="queryForm" >
		<div id="condition" class="block-body collapse in">

			<div class="container-fluid form-horizontal" style="margin: 20px;">
			<div class="row-fluid">
				<div class="span5">
					<div class="control-group">
						<label class="control-label">系统编码:</label>
						<div class="controls">
							<input type="text" id="q_sysCode" />
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">系统名称:</label>
						<div class="controls">
							<input type="text" id="q_sysName" />
						</div>
					</div>
				</div>
				<div class="span5">
					<div class="control-group">
						<label class="control-label">系统别名:</label>
						<div class="controls">
							<input type="text" id="q_sysShortName" />
						</div>
					</div>
				 </div>
			 </div>
			 
			<div class="row-fluid">
			     <div class="control-group">
						<label class="control-label">&nbsp;</label>
						<div class="controls">
							<button id="search" class="btn btn-primary">查询</button>
							<shiro:hasPermission name="${table.lowerFileName}:add">
								<a href="#myModal" class="btn btn-primary" role="button" class="btn" data-toggle="modal">添加</a>
							</shiro:hasPermission>
							<button id="resetForm" class="btn btn-primary">重置条件</button>
						</div>
			    </div>
			 </div>
			</div>
		</div>
		</form>
	</div>
	<div class="block">
		<div class="block-heading">
			<a href="#result" data-toggle="collapse">查询结果</a>
		</div>
		<div id="result" class="block-body collapse in"></div>
	</div>

	<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true" style="width: 600px;">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal"
				aria-hidden="true"></button>
			<h3 id="myModalLabel">新增系统</h3>
		</div>

		<div class="modal-body form-horizontal form-validate">
			<div class="control-group">
				<label class="control-label"><span style="color:red">*</span>系统编码:</label>
				<div class="controls">
					<input type="text" id="sysCode" class="required in " max-length="32" label="" /> 
					<span class="help-inline hide"></span>
				</div>
			</div>
			
			<div class="control-group">
				<label class="control-label"><span style="color:red">*</span>系统名称:</label>
				<div class="controls">
					<input type="text" id="sysName" class="required  in" max-length="100" label=""/> 
					 <span	class="help-inline hide"></span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label"><span style="color:red">*</span>系统别名:</label>
				<div class="controls">
					<input type="text" id="sysShortName" class="required  in" max-length="100" label=""/> 
					<span	class="help-inline hide"></span>
				</div>
			</div>
		</div>

		<div class="modal-footer">
			<button class="btn btn-primary" data-dismiss="modal"
				aria-hidden="true">关闭</button>
			<shiro:hasPermission name="${table.lowerFileName}:add"><Button id="add" class="btn btn-primary">保存</Button></shiro:hasPermission>
			<shiro:hasPermission name="${table.lowerFileName}:update"><Button id="modify" class="btn btn-primary hide">修改</Button></shiro:hasPermission>
		</div>

	</div>
</body>
</html>